package com.dap.cms.governance.po;

import com.dap.dao.BasePo;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @description: t_cms_manager表对应的实体类
 * @author: Fesine
 * @createTime:2018/08/20
 * @update:修改内容
 * @author: Fesine
 * @updateTime:2018/08/20
 */
public class CmsManagerPo extends BasePo {
    private static final long serialVersionUID = 1L;
    //alias
    public static final String TABLE_ALIAS = "CmsManager";
    public static final String ALIAS_ID = "主键";
    public static final String ALIAS_USERNAME = "用户名";
    public static final String ALIAS_PASSWORD = "用户密码";
    public static final String ALIAS_MANAGER_FLAG = "角色：1组件接入人员 2公司系统负责人 3组件管理员 4超级管理员";
    public static final String ALIAS_CREATE_TIME = "创建时间";
    public static final String ALIAS_LAST_UPDATE_TIME = "最后更新时间";


    //columns START
    /**
     * 主键       db_column: id
     */
    private Integer id;
    /**
     * 用户名       db_column: username
     */
    @NotBlank(message = "参数username不能为空")
    private String username;
    /**
     * 用户密码       db_column: password
     */
    private String password;
    /**
     * 角色：1组件接入人员 2公司系统负责人 3组件管理员 4超级管理员      db_column: manager_flag
     */
    @NotNull(message = "参数managerFlag不能为空")
    private Integer managerFlag;
    /**
     * 创建时间       db_column: create_time
     */
    private Date createTime;
    /**
     * 最后更新时间       db_column: last_update_time
     */
    private Date lastUpdateTime;

    /**
     * 保留字段
     *
     * @return
     */
    private String componentNames;
    /**
     * 保留字段
     *
     * @return
     */
    private String componentIds;

    //columns END


    public Integer getId() {
        return this.id;
    }

    public void setId(Integer id) {
        this.id = id;
    }


    public String getUsername() {
        return this.username;
    }

    public void setUsername(String username) {
        this.username = username;
    }


    public String getPassword() {
        return this.password;
    }

    public void setPassword(String password) {
        this.password = password;
    }


    public Integer getManagerFlag() {
        return this.managerFlag;
    }

    public void setManagerFlag(Integer managerFlag) {
        this.managerFlag = managerFlag;
    }


    public Date getCreateTime() {
        return this.createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }


    public Date getLastUpdateTime() {
        return this.lastUpdateTime;
    }

    public void setLastUpdateTime(Date lastUpdateTime) {
        this.lastUpdateTime = lastUpdateTime;
    }


    public String getComponentIds() {
        return componentIds;
    }

    public void setComponentIds(String componentIds) {
        this.componentIds = componentIds;
    }

    public String getComponentNames() {
        return componentNames;
    }

    public void setComponentNames(String componentNames) {
        this.componentNames = componentNames;
    }
}

